<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
    
    <body>
        
        <ui:composition template="./../WEB-INF/templates/default.xhtml">
            
            <ui:define name="title">
                Edit User Account
            </ui:define>
            
            <ui:define name="left">
                left
            </ui:define>
            
            <ui:define name="content">
                <h:panelGrid columns="2">
                    <h:outputText value="Username:"/>
                    <h:inputText id="username" value="#{user.user.username}" title="Username" required="true" requiredMessage="The username field is required." />
                    <h:outputText value="Password:"/>
                    <h:inputSecret id="password" value="#{user.user.password}" title="Password" required="true" requiredMessage="The password field is required." />                  
                </h:panelGrid>
                <br />
                <h:commandLink action="#{user.edit}" value="Save">
                    <f:param name="#{constants.common.REQ_CUR_WEB_USER}" value="#{user.user.id}"/>
                </h:commandLink>
                <br />
                <br />
                <h:commandLink action="#{user.detailSetup}" value="Show" immediate="true">
                    <f:param name="#{constants.common.REQ_CUR_WEB_USER}" value="#{user.user.id}"/>
                </h:commandLink>
            </ui:define>
            
            <ui:define name="bottom">
                bottom
            </ui:define>
            
        </ui:composition>
        
    </body>
</html>
